summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-01-28 17:57:53 +0100
committerGitHub <noreply@github.com>2024-01-28 17:57:53 +0100
commit077a50a547a6091178d73280ea9e156ac74a2ee8 (patch)
tree4ad08cbdb432224fb079f7260445e2d35dede7d9
parentMerge pull request #12823 from german77/set-audio (diff)
parentkernel: clear pinned waiter list on unpin (diff)
downloadyuzu-077a50a547a6091178d73280ea9e156ac74a2ee8.tar
yuzu-077a50a547a6091178d73280ea9e156ac74a2ee8.tar.gz
yuzu-077a50a547a6091178d73280ea9e156ac74a2ee8.tar.bz2
yuzu-077a50a547a6091178d73280ea9e156ac74a2ee8.tar.lz
yuzu-077a50a547a6091178d73280ea9e156ac74a2ee8.tar.xz
yuzu-077a50a547a6091178d73280ea9e156ac74a2ee8.tar.zst
yuzu-077a50a547a6091178d73280ea9e156ac74a2ee8.zip
-rw-r--r--src/core/hle/kernel/k_thread.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp
index 7d3421929..8a360a839 100644
--- a/src/core/hle/kernel/k_thread.cpp
+++ b/src/core/hle/kernel/k_thread.cpp
@@ -543,7 +543,8 @@ void KThread::Unpin() {
ASSERT(m_parent != nullptr);
// Resume any threads that began waiting on us while we were pinned.
- for (auto it = m_pinned_waiter_list.begin(); it != m_pinned_waiter_list.end(); ++it) {
+ for (auto it = m_pinned_waiter_list.begin(); it != m_pinned_waiter_list.end();
+ it = m_pinned_waiter_list.erase(it)) {
it->EndWait(ResultSuccess);
}
}